package test;


import java.awt.*;

import static java.awt.event.KeyEvent.*;

public class Auto2 {
    private static Robot robot;

    public static void main(String[] args) {
        try {
            robot = new Robot();

        } catch (Exception e) {
            e.printStackTrace();
        }
        int t = 1;

        while (true) {
            //
            int i= 0;
            for(i= 0;i<=58;i++) {
                robot.delay(5000);
                robot.keyPress(VK_1);
                robot.keyRelease(VK_1);
                robot.delay(5000);
                int[] arg = {VK_Q, VK_W, VK_E, VK_R, VK_T, VK_Y, VK_U, VK_I, VK_O, VK_P, VK_A, VK_S, VK_D, VK_F, VK_G, VK_H, VK_J, VK_K, VK_L, VK_Z, VK_X, VK_C, VK_V, VK_B, VK_N, VK_M};
                for (int key : arg) {
                    robot.keyPress(key);
                    robot.keyRelease(key);
                    robot.delay(250);
                    //System.out.println(KeyEvent.getKeyText(key));
                }
                System.out.println(i);
            }
            if(i>=58){
                robot.keyPress(VK_0);
                robot.keyRelease(VK_0);
                robot.delay(5000);
                robot.keyPress(VK_3);
                robot.keyRelease(VK_3);
                robot.delay(5000);
                i=0;
            }

        }
    }
}
          

